<?php

App::uses('AppModel', 'Model');
App::uses('CompositeKeyModel', 'Model');

/**
 * OrganisationGroupType Model
 *
 * @property Organisation $Organisation
 * @property OrganisationGroup $OrganisationGroup
 * @property OrganisationMember $OrganisationMember 
 */
class OrganisationGroupLeader extends CompositeKeyModel {

    //The Associations below have been created with all possible keys, those that are not needed can be removed

    public $useDbConfig = "organisations";
    public $primaryKeys = array('id', 'organisation_id');

    /**
     * belongsTo associations
     *
     * @var array
     */
    public $belongsTo = array(
        'Organisation' => array(
            'className' => 'Organisation',
            'foreignKey' => 'organisation_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'OrganisationGroup' => array(
            'className' => 'OrganisationGroup',
            'foreignKey' => 'organisation_group_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        ),
        'OrganisationMember' => array(
            'className' => 'OrganisationMember',
            'foreignKey' => 'organisation_member_id',
            'conditions' => '',
            'fields' => '',
            'order' => ''
        )
    );

}
